<extend name="Public/base"/>

<!-- 子导航 -->
<block name="sidebar">
    <include file="sidemenu"/>
</block>

<block name="body">

    <div class="main-title">
        <h2>
            新增二手信息
        </h2>
    </div>
    <!-- 表单 -->
    <form id="form" action="{:U('update')}" method="post" class="form-horizontal" enctype="multipart/form-data">
        <!-- 基础文档模型 -->
        <div id="tab" class="tab-pane">
            <div class="form-item">
                <div class="controls">
                    <label class="item-label">信息标题</label>
                    <input type="text" class="text input-large" required name="title" value="">
                </div>
            </div>
            <div class="form-item">
                <div class="controls">
                    <label class="item-label">所在地区</label>
                    <input type="text" class="text input-large"  required name="address" value="">
                </div>
            </div>
            <div class="form-item">
                <div class="controls">
                    <label class="item-label">品牌型号</label>
                    <input type="text" class="text input-large" required name="brand" value="">
                </div>
            </div>
            <div class="form-item">
                <div class="controls">
                    <label class="item-label">出厂年份</label>
                    <input type="text" class="text input-large" required name="years" value="">
                </div>
            </div>
            <div class="form-item">
                <div class="controls">
                    <label class="item-label">联系人</label>
                    <input type="text" class="text input-large" required name="contact" value="">
                </div>
            </div>
            <div class="form-item">
                <div class="controls">
                    <label class="item-label">电 话</label>
                    <input type="text" class="text input-large" required name="phone" value="">
                </div>
            </div>
            <div class="form-item">
                <div class="controls">
                    <label class="item-label">公 司</label>
                    <input type="text" class="text input-large" required name="company" value="">
                </div>
            </div>
            <div class="form-item">
                <label class="item-label">出售/求购</label>
                <div class="controls">
                    <label class="radio"><input type="radio" name="type" value="0" checked="checked">出售</label>
                    <label class="radio"><input type="radio" name="type" value="1">求购</label>
                </div>
            </div>
            <div class="form-item">
                <label class="item-label">是否展示</label>
                <div class="controls">
                    <label class="radio"><input type="radio" name="show" value="0" checked="checked">否</label>
                    <label class="radio"><input type="radio" name="show" value="1">是</label>
                </div>
            </div>
            <div class="form-item">
                <label class="item-label">备注</label>
                <textarea name="remark"></textarea>
                {:hook('adminArticleEdit', array('remark'=>$field['remark'],'remark'=>$field['remark']))}
            </div>
        </div>

        <div class="form-item">
            <button class="btn btn-success submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定
            </button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>